#! /bin/bash

set -e

psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER"  <<-EOSQL
CREATE USER u_notes_db;
CREATE DATABASE notes_db;
GRANT ALL PRIVILEGES ON DATABASE notes_db TO u_notes_db;
EOSQL
